# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class INDUSTRY_NEWSItem(scrapy.Item):
    """行业新闻"""
    description = scrapy.Field()  # 类型为String 摘要
    content = scrapy.Field()  # 类型为String 正文
    title = scrapy.Field()  # 类型为String 标题
    contributor = scrapy.Field()  # 类型为String 爬虫书写者姓名

    source = scrapy.Field()  # 类型为String  数据源
    releaseAt = scrapy.Field()  # 类型为datetime  发布日期
    target = scrapy.Field()  # 类型为String  url
    third_class = scrapy.Field()  # 类型为String  最后一级实体
    category = scrapy.Field()  # 类型为List  种类
    industry = scrapy.Field()  # 类型为List  行业
    spider_name = scrapy.Field()  # 类型为String  爬虫名称
    store_at = scrapy.Field()  # 类型为datetime  存储时间
    item_name = scrapy.Field()  # 类型为String  item名称


class POLICYItem(scrapy.Item):
    """政策原文"""
    policy_name = scrapy.Field()  # 类型为String 政策名称
    text_number = scrapy.Field()  # 类型为String 发文字号
    releaseAt = scrapy.Field()  # 类型为Date 发布时间
    issued = scrapy.Field()  # 类型为String 发布单位
    content = scrapy.Field()  # 类型为String 内容
    file_target = scrapy.Field()  # 类型为List 文件地址
    contributor = scrapy.Field()  # 类型为String 爬虫书写者姓名

    source = scrapy.Field()  # 类型为String  数据源
    target = scrapy.Field()  # 类型为String  url
    third_class = scrapy.Field()  # 类型为String  最后一级实体
    category = scrapy.Field()  # 类型为List  种类
    industry = scrapy.Field()  # 类型为List  行业
    spider_name = scrapy.Field()  # 类型为String  爬虫名称
    store_at = scrapy.Field()  # 类型为datetime  存储时间
    item_name = scrapy.Field()  # 类型为String  item名称
